<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>{% block title %}凡人芃的主页{% endblock %}</title>
    <link href="/css/reset.css" rel="stylesheet" type="text/css">
    <link href="/css/layout.css" rel="stylesheet" type="text/css">
    <link href="/css/slide.css" rel="stylesheet" type="text/css">
</head>

<body>
    <div id="header">
        {% block header %}
            <div class="logo"><img src="/image/touxiang.jpg" /></div><h1 class="title">凡人芃的主页</h1>
            <div class="clear"></div>
        {% endblock %}
    </div>
    <div id="navBar">
        {% block navBar %}
            <div class="loginButton"><a href="{{ context.loginUrl }}">{{ context.loginText }}</a></div>
            <div class="welcomeText">{{ context.welcomeText }}</div>
        {% endblock %}
    </div>
    <div id="center">
        <div id="left_menu">
            {% block left-menu %}
            <div class="left_sub_menu">
            <div class="title">常用工具</div>
                <ul>
                    <li><a href="/">首页</a></li>
                    <li><a href="/guestbook/">给我留言</a></li>
                    <li><a href="/articleList">日志列表</a></li>
                    <li><a href="/rss.xml">订阅RSS</a>
                    <link title="RSS 2.0" type="application/rss+xml" href="/rss.xml" rel="alternate" /></li>
                    <li><a href="/album">相册</a></li>
                    <li><a href="/compose">写新日志</a></li>
                </ul>
            </div>
            

            
        <div class="left_sub_menu">
            <div class="title">好友博客</div>
            <ul>
                <li><a href="http://literature.mblogger.cn/h2xie/" target="_blank">重庆时间</a></li>
                <li><a href="http://spaces.msn.com/margaretfox1984/" target="_blank">Margaret</a></li>
                <li><a href="http://yatoyu.blog.sohu.com/" target="_blank">yatoyu</a></li>
                <li><a href="http://14713869.qzone.qq.com/" target="_blank">梅玫</a></li>
                <li><a href="http://nicesue.spaces.live.com/" target="_blank">sue</a></li>
                <li><a href="http://blog.sina.com.cn/u/1267863952" target="_blank">老高</a></li>
                <li><a href="http://kongyao.spaces.live.com/" target="_blank">遥~</a></li>
                <li><a href="http://wwwppp0801.spaces.live.com/" target="_blank">wp的工作纪要</a></li>
                <li><a href="http://caozihua.spaces.live.com/default.aspx?partner=Live.Spaces" target="_blank">曹子华</a></li>
                <li><a href="http://realfukan.spaces.live.com/default.aspx?partner=Live.Spaces" target="_blank">付侃</a></li>
                <li><a href="http://iamjuliuswang.spaces.live.com/default.aspx?partner=Live.Spaces" target="_blank">xiaoyu</a></li>
                <li><a href="http://zer4tul.spaces.live.com/" target="_blank">zer4tul</a></li>
                <li><a href="http://wulinplayer.spaces.live.com/" target="_blank">吴霖</a></li>
                <li><a href="http://smilelm.yculblog.com/" target="_blank">夕雯</a></li>
                <li><a href="http://kakalumiwa.blog.sohu.com/" target="_blank">铁头妹妹</a></li>
                <li><a href="http://featherh.spaces.live.com/" target="_blank">黄鱼</a></li>
                <li><a href="http://eewhale.spaces.live.com/" target="_blank">鱼</a></li>
            </ul>
        </div>

            <div class="left_sub_menu">
                <div class="title">日志索引</div>
                <ul>
                   {% for month in months %}
                   <li><a href="/archive?year={{month.year}}&month={{month.month}}">{{month.year}}年{{month.month}}月</a></li>
                   {% endfor %}
                </ul>
            </div>
            {% endblock %}
        </div>

        <div id="main">
            {% block main %}mainpart{% endblock %}
        </div>
        
        <div id="right_menu">
            {% block right-menu %}
            <div class="right_sub_menu">
                <div class="title">Tags</div>
                <ul>
                   {% for tag in tags %}
                   <li><a href="/tag?tag={{tag.name}}">{{tag.name}}({{tag.count}})</a></li>
                   {% endfor %}
                </ul>
                <div class="clear"></div>
            </div>
            
            <div class="right_sub_menu">
                <div class="title">最新留言</div>
                   {% for greeting in greetings %}
                   <div class="comment"><div>{{greeting.author}}<br>{{greeting.date}}</div>
                        <div class="comment-content">{{greeting.content}}</div>
                   </div>
                   {% endfor %}
                        <div id="greeting_form">
                        <form action="/guestbook/sign" method="post">
                          请留言:<br>
                          <textarea name="content" type="text" style="width:140px;overflow-x:visible;overflow-y:visible;"></textarea><br>
                          <input type="submit" value="提交留言">
                        </form>
                        </div>
            </div>
            {% endblock %}
        </div>
        <div class="clear"></div>
        <div id="footer">
            {% block footer %}powered by <a
            href="mailto:wwwppp0801@gmail.com">wp</a>{% endblock %}
        </div>
    </div>
    <script src="/js/syntaxHilighter.js"></script>
</body>
</html>

